package com.zplus.managers.petservices.entities;

import com.alibaba.fastjson2.annotation.JSONField;

public class User extends EntityBase
{

    @JSONField(name = "user.name")
    private String nickName;

    private String secret;

    @JSONField(name = "user.gender")
    private String gender;

    @JSONField(name = "user.age")
    private Integer age;

    @JSONField(name = "user.phone")
    private String phoneNum;

    @JSONField(name = "user.addr")
    private String address;

    @JSONField(name = "user.email")
    private String email;

    @JSONField(name = "user.exp")
    private Integer experience;

    public String getAddress()
    {
        return address;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public int getId()
    {
        return super.getId();
    }

    public void setId(int id)
    {
        super.setId(id);
    }

    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getSecret()
    {
        return secret;
    }

    public void setSecret(String secret)
    {
        this.secret = secret;
    }

    public String getGender()
    {
        return gender;
    }

    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public Integer getAge()
    {
        return age;
    }

    public void setAge(Integer age)
    {
        this.age = age;
    }

    public void setAge(String age)
    {
        this.age = Integer.parseInt(age);
    }

    public String getPhoneNum()
    {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum)
    {
        this.phoneNum = phoneNum;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public Integer getExperience()
    {
        return experience;
    }

    public void setExperience(Integer experience)
    {
        this.experience = experience;
    }
    public void setExperience(String exp)
    {
        this.experience = Integer.parseInt(exp);
    }
    public User(){}

    public User(Integer id, String nickName, String secret, String gender, Integer age, String phoneNum, String email, Integer experience)
    {
        super.setId(id);
        this.nickName = nickName;
        this.secret = secret;
        this.gender = gender;
        this.age = age;
        this.phoneNum = phoneNum;
        this.email = email;
        this.experience = experience;
    }
}
